package com.Windows;

public class Window {
    int no;
    int x1;
    int y1;
    int x2;
    int y2;

    public Window(int no, int x1, int y1, int x2, int y2) {
        this.no = no;
        this.x1 = x1;
        this.y1 = y1;
        this.x2 = x2;
        this.y2 = y2;
    }
    //判断是否在窗口内
    public boolean bInWindow(int x,int y){
        return x >= x1 && x <= x2 && y >= y1 && y <= y2;
    }

}
